#include <stdio.h>

int main(void)
{
	int score;

	printf("Input an integer between 0 and 100: ");
	scanf("%d", &score);
	if (score < 60)
		printf("bad\n");
	else if (score < 70)
		printf("pass\n");
	else if (score < 80)
		printf("general\n");
	else if (score < 90)
		printf("good\n");
	else
		printf("excellent\n");

	return 0;
}